// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Application</Project>
// <FileName>OrderDetailOutDto.cs</FileName>
// <CreateTime>2017-05-15 17:18</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-15 17:18" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;

namespace Vecen.BangChuang.BangChuang.Mall.Dtos {

    /// <summary>
    /// 订单详情
    /// </summary>
    [AutoMapFrom(typeof(Order))]
    public class OrderDetailOutDto:EntityDto {

        /// <summary>
        /// 收获地址信息
        /// </summary>
        public UserAddressOutDto UserAddress { get; set; }

        /// <summary>
        /// 订单明细
        /// </summary>
        public virtual OrderItemOutDto OrderItem { get; set; }

        /// <summary>
        /// 付款方式
        /// </summary>
        public PaymentMethod PaymentMethod { get; set; }
        
        /// <summary>
        /// 是否已支付
        /// </summary>
        public bool IsPayed { get; set; }

        /// <summary>
        /// 是否已作废
        /// </summary>
        public bool IsBlankOut { get; set; }

        /// <summary>
        /// 订单价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 订单时间
        /// </summary>
        public DateTime OrderTime { get; set; }

        /// <summary>
        /// 是否已发货
        /// </summary>
        public bool IsDelivered { get; set; }
    }
}